package com.zzxy.mybatis35.dao;

import com.zzxy.mybatis35.entity.User;

public class UserDaoImpl {
    private sqlSession sqlSession;
    public UserDaoImpl(sqlSession sqlSession) {
        this.sqlSession = sqlSession;
    }
    public User findUserById(int id){
        User user = sqlSession.selectOne("findUserById",id);
        return user;
    }
}
